package com.tungse.study.dynamic_proxy;

/**
 * 手写一个简单的动态代理
 * @author Tungse
 */
public class Main {

    public static void main(String[] args) throws Exception {

        MyInterface instance = DynamicProxyLog.getInstance(MyInterface.class, new PrintMyInterface());
        instance.sayHello();
        System.out.println(instance.getPersonStatus("tungse "));


//        MyInterface instance1 = DynamicProxyLog.getInstance(MyInterface.class, new PrintMyInterface());
//
//        instance1.sayHello();
    }


}
